package com.cdtye.itps.cms.service.origindata;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cdtye.common.mybatiscore.base.BaseService;
import com.cdtye.itps.cms.dao.origindata.entity.JcjcDetectC4Index;
import com.cdtye.itps.cms.dao.origindata.vo.JcjcDetectC4IndexVo;
import com.cdtye.itps.cms.mapper.origindata.JcjcDetectC4IndexMapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class JcjcDetectC4IndexService extends BaseService<JcjcDetectC4IndexMapper, JcjcDetectC4Index> {

    /**
     *根据detectJobId查询相关4cIndex所关联的区站信息
     *
     */
    public List<Map<String,Object>> getC4IndexSiteListByDetectJobId(JcjcDetectC4IndexVo vo){
        return baseMapper.getC4IndexSiteListByDetectJobId(vo);
    }

    /**
     * 根据detectJobId和siteId查询4cIndex所相关的支柱信息
     */
    public List<Map<String,Object>> getC4IndexPillarListByDetectJobIdAndSiteId( JcjcDetectC4IndexVo vo){
        return baseMapper.getC4IndexPillarListByDetectJobIdAndSiteId(vo);
    }

    /**
     * 4C检测数据详情页面区站和支柱查询
     */
    public IPage<Map<String,Object>> getC4DetailPillarInfo(JcjcDetectC4IndexVo vo){
        return baseMapper.getC4DetailPillarInfo(vo.page(),vo);
    }
}
